<?php
require_once('lib/nusoap.php'); 

include("../config.php");
include("../inc/utils.php");

	
$db_www = new DB($server_username,$server_pass,$server_db,$server,$driver);
$db_rdata = new DB($rdata_server_username,$rdata_server_pass,$rdata_server_db,$rdata_server,$rdata_driver);



$server = new nusoap_server;
$server->xml_encoding = "utf-8";
$server->soap_defencoding = "utf-8";
$server->decode_utf8 = false;

$server->configureWSDL('server', 'urn:server');
 


//get product list
include("methods/xml_sask.php");


$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
 
$server->service($HTTP_RAW_POST_DATA);

?>